﻿<UserControl x:Class="WiFiChannelSpread.NetworkDetailsControl" x:Name="MyRoot"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
             d:DesignHeight="250" d:DesignWidth="500" MouseDown="MyRoot_MouseDown">
    <Grid>
        <Rectangle Name="BackgroundRect" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Fill="Black" Opacity="0.5" />
        <Border Name="ContentSection" VerticalAlignment="Center" HorizontalAlignment="Center" Width="350" Height="220" MaxHeight="220"
                CornerRadius="5" BorderThickness="1,4,1,4" BorderBrush="{Binding ElementName=MyRoot, Path=HighlightColor}">
            <Border.Effect>
                <DropShadowEffect BlurRadius="10" Color="Black" Direction="315" Opacity="0.5" ShadowDepth="10" />
            </Border.Effect>
            <Border.Background>
                <LinearGradientBrush>
                    <LinearGradientBrush.GradientStops>
                        <GradientStop Offset="0" Color="White"/>
                        <GradientStop Offset="1" Color="#EEEEEE"/>
                    </LinearGradientBrush.GradientStops>
                </LinearGradientBrush>
            </Border.Background>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*" />
                    <RowDefinition Height="20" />
                </Grid.RowDefinitions>

                <StackPanel Grid.Row="0" Margin="10,5,10,0" Orientation="Horizontal" VerticalAlignment="Top">
                    <Label FontWeight="Bold" Padding="0" Content="Network properties for " />
                    <Label FontWeight="Bold" Padding="0" Content="{Binding ElementName=MyRoot, Path=NetworkName}" />
                </StackPanel>
                
                <Grid Grid.Row="0" Margin="10,20,10,5">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="100" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <StackPanel Grid.Column="0" Margin="0" Orientation="Vertical" VerticalAlignment="Top">
                        <Label FontSize="11" Padding="0" Content="Is connected:" />
                        <Label FontSize="11" Padding="0" Content="Has profile:" />
                        <Label FontSize="11" Padding="0" Content="Network type:" />
                        <Label FontSize="11" Padding="0" Content="Security:" />
                        <StackPanel Grid.ColumnSpan="2" Margin="0,5,0,0" Orientation="Horizontal">
                            <Label FontSize="11" Padding="0" Content="Access Point " FontWeight="Bold" />
                            <Label FontSize="11" Padding="0" Content="(1/1)" FontWeight="Bold" Name="AccessPointCountLabel" />
                        </StackPanel>
                        <Label FontSize="11" Padding="0" Content="Wi-Fi standard:" />
                        <Label FontSize="11" Padding="0" Content="MAC address:" />
                        <Label FontSize="11" Padding="0" Content="Geolocation:" />
                    </StackPanel>
                    <StackPanel Grid.Column="1" Margin="0" Orientation="Vertical" VerticalAlignment="Top">
                        <Grid>
                            <Label FontSize="11" Padding="0" Name="ConnectedLabel" Content="Yes/No" />
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                                <Label FontSize="11" Padding="0,0,0,0" Name="DisconnectLabel" HorizontalAlignment="Right" Cursor="Hand" Foreground="Blue" MouseLeftButtonDown="DisconnectLabel_MouseLeftButtonDown">
                                    <Underline>disconnect</Underline>
                                </Label>
                                <Label FontSize="11" Padding="0,0,0,0" Name="ConnectLabel" HorizontalAlignment="Right" Cursor="Hand" Foreground="Blue" MouseLeftButtonDown="ConnectLabel_MouseLeftButtonDown">
                                    <Underline>connect</Underline>
                                </Label>
                            </StackPanel>
                        </Grid>
                        <Grid>
                            <StackPanel Orientation="Horizontal">
                                <Label FontSize="11" Padding="0" Name="ProfileLabel" Content="Yes/No" />
                            </StackPanel>
                            <StackPanel Name="ProfileActionSection" Orientation="Horizontal" HorizontalAlignment="Right">
                                <Label FontSize="11" Padding="25,0,0,0" Name="EditProfileLabel" Cursor="Hand" Foreground="Blue" MouseLeftButtonDown="EditProfileLabel_MouseLeftButtonDown">
                                    <Underline>edit</Underline>
                                </Label>
                                <Label FontSize="11" Padding="0" Content=" or " />
                                <Label FontSize="11" Padding="0" Name="DeleteProfileLabel" Cursor="Hand" Foreground="Blue" MouseLeftButtonDown="DeleteProfileLabel_MouseLeftButtonDown">
                                    <Underline>delete</Underline>
                                </Label>
                            </StackPanel>
                        </Grid>
                        <Label FontSize="11" Padding="0" Name="NetworkTypeLabel" Content="Type" />
                        <Label FontSize="11" Padding="0" Name="SecurityLabel" Content="Security" />
                        <Label FontSize="11" Padding="0,5,0,0" Content="" FontWeight="Bold" />
                        <Label FontSize="11" Padding="0" Name="WiFiStandardLabel" Content="11n" />
                        <Label FontSize="11" Padding="0" Name="MacAddressLabel" Content="MacAddress" />
                        <StackPanel Orientation="Vertical">
                            <Label FontSize="11" Padding="0" Name="GeolocationLabel" Content="Geolocation" Foreground="Blue" Cursor="Hand" MouseLeftButtonDown="GeolocationLabel_MouseLeftButtonDown" />
                            <TextBlock FontSize="11" Padding="0" Name="AddressLabel" VerticalAlignment="Top" TextWrapping="Wrap" FontStyle="Italic">
                                street street_number postal_code city  (state? region?) country
                            </TextBlock>
                        </StackPanel>
                    </StackPanel>
                </Grid>
                <Label Grid.Row="1" Padding="0,0,10,0" HorizontalAlignment="Right" Cursor="Hand" FontWeight="Bold" Foreground="Blue"
                       MouseLeftButtonDown="Label_MouseLeftButtonDown">
                    <Underline>close</Underline>
                </Label>
            </Grid>
        </Border>
    </Grid>
</UserControl>
